package cn.dw.mm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dw.mm.domain.Authority;
import cn.dw.mm.mapper.AuthorityMapper;
import cn.dw.mm.service.AuthorityService;

@Service
public class AuthorityServiceImpl implements AuthorityService {

	@Autowired
	private AuthorityMapper authorityMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return authorityMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Authority record) {
		// TODO Auto-generated method stub
		return authorityMapper.insert(record);
	}

	@Override
	public int insertSelective(Authority record) {
		// TODO Auto-generated method stub
		return authorityMapper.insertSelective(record);
	}

	@Override
	public Authority selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return authorityMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Authority record) {
		// TODO Auto-generated method stub
		return authorityMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Authority record) {
		// TODO Auto-generated method stub
		return authorityMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Authority> selectAll(Authority authority) {
		// TODO Auto-generated method stub
		return authorityMapper.selectAll(authority);
	}

}
